import static org.junit.Assert.*;

import org.junit.Test;


public class FerStackTest {


	@Test
	public void testPop() {
		
		FerStack<Double> lista = new FerStack<Double>();
		
		lista.push(25.0);
		lista.push(12.0);		
		Double cuan = (Double) lista.pop();
		
		if((lista.size()== 1)  ){
			assertEquals("Satisfactorio",1,lista.size());
		}else{
			fail("No Satisfactorio");
		}
	}

	@Test
	public void testPush() {
		FerStack<Double> lista = new FerStack<Double>();
		
		lista.push(25.0);
		lista.push(12.0);		
		assertEquals((Double)12.0, lista.pop());
		
		
	}

	@Test
	public void testSize() {
		FerStack<Double> lista = new FerStack<Double>();
		
		lista.push(25.0);
		lista.push(12.0);
		lista.push(25.0);
		lista.push(12.0);
		lista.push(25.0);
		lista.push(12.0);
		
		assertEquals(6, lista.size());
		
		
	}

}
